import request from "./request.js"
// 登录
export function wxAutoLogin(params) {
	return request("api/sso/wxAutoLogin", "POST", params)
}
// 个人收益
export function myIncome(params) {
	return request("api/userPointStatement/myIncome/" + params.userId, "GET", {})
}
//首页列表跳转
export function shouyeData() {
	return request("api/indexKate/list", "GET")
}
// 首页列表
export function indexList(params) {
	return request("api/task/indexList", "GET", params)
}
// 活动详情
export function taskDetail(params) {
	return request("api/task/taskDetail/" + params.id, "GET")
}
//抢单
export function robTask(params) {
	return request("api/taskEnroll/robTask", "PUT", params)
}
//活动报名记录-通过id查询
export function queryById(params) {
	return request("taskEnrollHis/sdTaskEnrollHis/queryById", "GET", params)
}
// 上传订单凭证或者评价凭证
export function uploadOrderAndProofImage(params) {
	return request("api/taskEnroll/uploadOrderAndProofImage", "POST", params)
}
//活动报名记录-分页列表查询
export function taskEnrollList(params) {
	return request("api/taskEnroll/list", "GET", params)
}
// 取消申请
export function cancelEnrolId(id) {
	return request("api/taskEnroll/cancelEnroll/" + id, "post")
}
// 会员
// 兑换会员商品
export function exChangeVip(params) {
	return request("api/vip/exChangeVip", "POST", params)
}
//我的会员信息
export function myVipId(id) {
	return request("api/vip/myVip/" + id, "GET")
}
//会员签到
export function singVipId(id) {
	return request("api/vip/sing/" + id, "POST")
}
//会员签到信息
export function singInfoId(id) {
	return request("api/vip/singInfo/" + id, "GET")
}
//会员签到配置信息
export function userSingConf(id) {
	return request("api/vip/userSingConf", "GET")
}
//全部会员商品
export function vipShops(params) {
	return request("api/vip/vipShops", "GET")
}
// 修改个人信息
export function modifyUserPaymentCode(params) {
	return request("api/userPointStatement/modifyUserPaymentCode", "PUT", params)
}
// 我的收益信息
export function myIncomeId(id) {
	return request("api/userPointStatement/myIncome/" + id, "GET")
}
// 我的收益记录分页查询
export function myIncomePage(params) {
	return request("api/userPointStatement/myIncomePage/" + params.id, "GET", params)
}
// 提现
export function askTakeIncome(params) {
	return request("api/userPointStatement/askTakeIncome", "PUT", params)
}
// 店铺入驻
export function settled(params) {
	return request("api/shopSettled/settled", "POST", params)
}
// 注销
export function disableUser(params) {
	return request("api/sso/disableUser", "POST", params, 1)
}
// 查询协议  规则
export function getByType(type) {
	return request("api/contentBase/getByType/" + type, "GET")
}
// 推荐
// 推广中心
export function myRecommend(id) {
	return request("api/recommend/myRecommend/" + id, "GET")
}
// 推荐页面  人数
export function myRecommendCode(id) {
	return request("api/recommend/myRecommendCode/" + id, "GET")
}
// 根据邀请码获取用户信息
export function getMemberByRecCode(code) {
	return request("api/recommend/getMemberByRecCode/" + code, "GET")
}
// 绑定推荐
export function bindRecommendShip(params) {
	return request("api/recommend/bindRecommendShip", "PUT", params, 1)
}
// 首页分类列表查询
export function indexKateList(type) {
	return request("api/indexKate/list", "GET")
}
// 加载首页字典
export function loadDiceByCode(params) {
	return request("api/tool/loadDiceByCode", "GET", params)
}
// 获取商家入驻状态
export function getSettledStatus(params) {
	return request("/api/shopSettled/getSettledStatus", "POST", params)
}
export function enableRZ(params) {
	return request("/api/sso/enableRZ", "GET", params)
}
// 提现显示隐藏   代码提交发布时，需要先把提现功能隐藏 审核通过后  在打开
// /api/sso/open (隐藏)
// /api/sso/close （显示）